package top.hzy520.valuation.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import top.hzy520.common.resp.ApiResult;
import top.hzy520.valuation.entity.ProductSku;
import top.hzy520.valuation.entity.SalesItem;

import java.util.List;

/**
 * @Author: HouZeYu
 * @Description:
 * @Date: Created in 20:44 2018/6/27
 */
@FeignClient(name = "sales-service",fallback = SalesFallBack.class)
public interface SalesServiceClient {

      @RequestMapping("/sales/product")
     ApiResult<List<SalesItem>> findProductSkuSales(@RequestBody ProductSku productSku);
}
